package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(contextId = "remoteYlService",
        value = ServiceNameConstants.YL_SERVICE,
        fallbackFactory = RemoteUserFallbackFactory.class)

public interface RemoteYLService {

    /**
     * 通过用户名查询用户信息
     *
     * @param orderNo 订单编号
     * @return 结果
     */
    @GetMapping("/comment/review/true")
     R<AjaxResult> reviewTrue(@RequestParam("orderNo") String orderNo, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);


    /**
     * 通过用户名查询用户信息
     *
     * @param orderNo 订单编号
     * @return 结果
     */
    @GetMapping("/comment/review/false")
    R<AjaxResult> reviewFalse(@RequestParam("orderNo") String orderNo,@RequestParam("reviewStatusDesc")String reviewStatusDesc, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);

}
